restore_constrained_values Interface

public interface restore_constrained_values

Contents


Module Procedures

private function restore_constrained_values_dense(gdof, x) result(rst)

Restores the constrained degrees-of-freedom from the boundary conditions applied by apply_boundary_conditions.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), dimension(:) :: gdof

An array of the global degrees of freedom to restrain. The array is sorted into ascending order on output.

real(kind=real64), intent(in), dimension(:) :: x

The constrained vector.

Return Value real(kind=real64), allocatable, dimension(:)

The altered vector.

private function restore_constrained_values_csr(gdof, x) result(rst)

Restores constrained rows and columns to a reduced CSR matrix.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(inout), dimension(:) :: gdof

An array of the global degrees of freedom to restrain. The array is sorted into ascending order on output.

type(csr_matrix), intent(in) :: x

The reduced CSR matrix.

Return Value type(csr_matrix)

The expanded CSR matrix with zero constrained rows and columns.